Introduction
-------------
This text document accompanies the IR receiver CCS test case for DM814X 
EVM. It provides a brief of the methodology of the test and the procedure for 
executing the same.

Overview
---------
This CCS test application tests the functionality of the IR receiver present on the 
DM814X Base Board.
	- This test case reads the code of the key pressed and displays the respective key code on the console.
	- If a numeric key is pressed, the corresponding key and code value gets displayed on the console.
	- For a non-numeric key only the code value gets displayed.
	

Board Settings
--------------
This test does not require any special settings to be configured on the board.But it requires  
the universal remote control to be compatible with RC-5 format. 

Follow the following steps to configure the Philips universal remote to emit the RC-5 code. 
1. Press and hold the CODE SEARCH button until the red indicator stays on, then release the CODE SEARCH button. 
2. Press and release the TV mode button. The red indicator blinks, and then stays lit. 
3. Enter the 4 digit code, 0020. After the valid code entry, the red indicator turns off. For an invalid code, the red indicator flashes. 
4. Now the remote controller is programmed to give out RC-5 code.

Procedure
----------
This test application assumes the various initialization as well as all
the PLL initialization is already carried out by the GEL scripts. At the minimum
the following GEL script is to be executed.
	1. PG 2.X DM814X                --> ALL_ADPLL_CLOCKS_ENABLE_API  
	2. DM814X System Initialization --> BB_IR_Config

load "BB_015_IRRemote_Test.out" file and run.

Observation
-----------
The following observations are to be made after executing the test case:
1. The user needs to press any key from the IR Remote(compatible with RC-5 protocol) within 5-6 seconds from the start of the execution.
2. If a numeric key is pressed,
	"Received Code Value: <respective code value in HEX>
	 Numeric Key <numeric key value> is pressed.
    		PASS"
      gets displayed in the console.
3. If a non-numeric key is pressed,
	"Received Code Value: <respective code value in HEX>
	        PASS"
      gets displayed in the console.
4. If the user doesn't press any key within 5-6 seconds, 
	"Timeout occured while receiving" and "FAIL... error code 1... " gets displayed in the console.
5. The user should manually verify the key value against the key pressed.


=> Below is the table for verifying the key value with the code value (specified only for the numeric keys):

	Code Value		Key Value
	----------		---------
    0x255535 / 0x295535		   1
    0x25554D / 0x29554D		   2
    0x25552D / 0x29552D		   3
    0x255553 / 0x295553		   4
    0x255533 / 0x295533		   5
    0x25554B / 0x29554B		   6
    0x25552B / 0x29552B		   7
    0x25556A / 0x29556A		   8
    0x25555A / 0x29555A		   9
    0x255555 / 0x295555		   0

NOTE:
----
If RC-5 compatible remote is not available, then for every key(also for numeric keys) that is pressed the corresponding code value will appear
and not the key value. The code value will differ from one company remote to another for keys.
